import request from '@/utils/request'
import {getToken} from '@/utils/auth'
var token = getToken()
//列表

export function getDdOrderPagelList(data,pageData) {
  return request({
    url: '/ddOrder/page/'+pageData.pageNo+'/'+pageData.pageSize,
    method: 'post',
    data
  })
}
//新增
export function getHospitalAdd(data) {
    return request({
      url: '/hospital/add',
      method: 'post',
      data
    })
  }

// 修改
export function getHospitalUpdate(data) {
    return request({
      url: '/hospital/update',
      method: 'post',
      data
    })
  }


// 查看
export function getDdOrderDetail(id) {
    return request({
      url: '/ddOrder/detail/'+id,
      method: 'get',
    })
  }

// 删除
export function getHospitalDelete(id) {
    return request({
      url: '/hospital/delete/'+id,
      method: 'get',
    })
  }
	//导出
	export function getTimeExpor(data) {
	  return request({
	    url: '/ddOrder/export',
	    method: 'post',
	    responseType:'blob',
	    data
	  })
	}
	//病种分类
export function getTreatList(id) {
  return request({
    url: '/treat/list',
    method: 'get',
  })
}
	